<?php
namespace app\api\model;

use think\Model;
use think\model\concern\SoftDelete;

class Article extends Model
{
    use SoftDelete;
    protected $deleteTime = 'delete_time';
    
    public function getCreateTimeAttr($value) {
        return date("Y-m-d H:i:s", $value);
    }

    public function getUpdateTimeAttr($value) {
        return date("Y-m-d H:i:s", $value);
    }
}